From: Julien Grall Date: Wed, 22 Jun 2016 11:15:20 +0000 (+0100) Subject: xen/arm64: Add an helper to invalidate all instruction caches X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~785 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fb9d877;p=xen.git xen/arm64: Add an helper to invalidate all instruction caches Signed-off-by: Julien Grall Acked-by: Stefano Stabellini --- diff --git a/xen/include/asm-arm/arm64/page.h b/xen/include/asm-arm/arm64/page.h index 29a32cf4e7..fbdc8fb771 100644 --- a/xen/include/asm-arm/arm64/page.h +++ b/xen/include/asm-arm/arm64/page.h @@ -24,6 +24,12 @@ static inline void write_pte(lpae_t *p, lpae_t pte) * inline asm operand) */ #define __clean_and_invalidate_dcache_one(R) "dc civac, %" #R ";" +/* Invalidate all instruction caches in Inner Shareable domain to PoU */ +static inline void invalidate_icache(void) +{ + asm volatile ("ic ialluis"); +} + /* * Flush all hypervisor mappings from the TLB of the local processor. *